package com.efast.dmom.mgmt.controller.les;

import java.util.List;
import com.efast.cafe.framework.bean.ResultBean;
import com.efast.dmom.mgmt.entity.les.TtWhmStockInbound;
import com.efast.dmom.mgmt.service.les.TtWhmStockInboundService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * @描述 入库记录 TT_WHM_STOCK_INBOUND
 * @创建人 ChenLiPeng
 * @创建时间 2018年4月18日下午1:44:13
 * @since JDK 1.8
 */
@Controller
@RequestMapping(value = "/ttWhmStockInbound")
@Api(description = "物流执行管理-->出库-->入库报表")
public class TtWhmStockInboundController {

	@Autowired
	private TtWhmStockInboundService ttWhmStockInboundService;

	/**
	 * 
	 * @描述 查询所有的入库记录
	 * @方法名 confirmPicking
	 * @param twOutbTaskHeader
	 * @return
	 * @返回类型 ResultBean
	 * @创建人 ChenLiPeng
	 */
	@ApiOperation(value = "【查询所有的入库记录】", notes = "请求参数：")
	@RequestMapping(value = "/confirmPicking", method = RequestMethod.POST)
	public @ResponseBody ResultBean confirmPicking(@RequestBody TtWhmStockInbound ttWhmStockInbound) {
		ResultBean result = new ResultBean(true, "'");
		List<TtWhmStockInbound> listTtWhmStockInbound = ttWhmStockInboundService.selectTtWhmStockInbound(null);
		result.setObject(listTtWhmStockInbound);
		return result;
	}

}
